﻿using System.ComponentModel.DataAnnotations;

namespace SlamDunk.CMS.Model.ViewModel
{
    /// <summary>
    /// Article视图模型类（修改信息用）
    /// </summary>
    public class ArticleViewForUpdate
    {
        #region 01.属性——Id
        /// <summary>
        /// 属性——Id
        /// </summary>
        public int Id { get; set; }
        #endregion

        #region 02.属性——ChannelId
        /// <summary>
        /// 属性——ChannelId
        /// </summary>
        public int ChannelId { get; set; }
        #endregion

        #region 03.属性——UserId
        /// <summary>
        /// 属性——UserId
        /// </summary>
        public int UserId { get; set; }
        #endregion

        #region 04.属性——Title
        /// <summary>
        /// 属性——Title
        /// </summary>
        [Required(ErrorMessage = "必填")]
        [StringLength(32, ErrorMessage = "内容过长")]
        public string Title { get; set; }
        #endregion

        #region 03.属性——Intitle
        /// <summary>
        /// 属性——Intitle
        /// </summary>
        public string Intitle { get; set; }
        #endregion

        #region 04.属性——SubTitle
        /// <summary>
        /// 属性——SubTitle
        /// </summary>
        public string SubTitle { get; set; }
        #endregion

        #region 05.属性——Author
        /// <summary>
        /// 属性——Author
        /// </summary>
        [Required(ErrorMessage = "必填")]
        [StringLength(16, ErrorMessage = "内容过长")]
        public string Author { get; set; }
        #endregion

        #region 06.属性——Source
        /// <summary>
        /// 属性——Source
        /// </summary>
        [StringLength(16, ErrorMessage = "内容过长")]
        public string Source { get; set; }
        #endregion

        #region 07.属性——Content
        /// <summary>
        /// 属性——Content
        /// </summary>
        public string Content { get; set; }
        #endregion

        #region 08.属性——IsTop
        /// <summary>
        /// 属性——IsTop
        /// </summary>
        public bool? IsTop { get; set; }
        #endregion

        #region 09.属性——ImagePath
        /// <summary>
        /// 属性——ImagePath
        /// </summary>
        public string ImagePath { get; set; }
        #endregion

        #region 10.属性——ThumbPath
        /// <summary>
        /// 属性——ThumbPath
        /// </summary>
        public string ThumbPath { get; set; }
        #endregion

        #region 11.属性——Attachment
        /// <summary>
        /// 属性——Attachment
        /// </summary>
        public string Attachment { get; set; }
        #endregion
    }
}
